package com.qiangesoft.blog.controller.web;

import com.qiangesoft.blog.core.pojo.vo.BlogTagVO;
import com.qiangesoft.blog.core.service.IBlogTagService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 博客标签 前端控制器
 * </p>
 *
 * @author qiange
 * @date 2023-06-01
 */
@RestController
@RequestMapping("/api/tag")
@Api(tags = "标签管理")
@RequiredArgsConstructor
public class ApiBlogTagController {

    private final IBlogTagService tagsService;

    @GetMapping
    @ApiOperation(value = "标签列表")
    public List<BlogTagVO> tagList() {
        return tagsService.webList();
    }

}

